{extend name='public/content'}

{block name="title"}
	商品详情
{/block}

{block name="body"}
		
	<div class="layui-container">  
		<div id="qrcode" style="width:100%; height:100px; margin-top:15px;"></div>
	</div>
	<a href="{$url}">我的邀请码</a>
	<style type="text/css">
		.red{
			color: red;
		}
	</style>
		
{/block}


{block name="script"}
 	<script type="text/javascript">
 		require(['jquery',"qrcode"], function () {
 				var qrcode = new QRCode(document.getElementById("qrcode"), {
					width : 400,
					height : 400
				});
				function makeCode () {							
					qrcode.makeCode("{$url}");
				}

				makeCode();
 		 		
 		 })
 		
 	</script>
{/block}

{block name="style"}
 <style type="text/css">
 	
 </style>
{/block}